﻿<!doctype html>
<html class="no-js">
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="description" content="">
  <meta name="keywords" content="">
  <meta name="viewport"
        content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
  <title>车生活</title>

  <!-- Set render engine for 360 browser -->
  <meta name="renderer" content="webkit">

  <!-- No Baidu Siteapp-->
  <meta http-equiv="Cache-Control" content="no-siteapp"/>

  <link rel="icon" type="image/png" href="assets/i/favicon.png">

  <!-- Add to homescreen for Chrome on Android -->
  <meta name="mobile-web-app-capable" content="yes">
  <link rel="icon" sizes="192x192" href="assets/i/app-icon72x72@2x.png">

  <!-- Add to homescreen for Safari on iOS -->
  <meta name="apple-mobile-web-app-capable" content="yes">
  <meta name="apple-mobile-web-app-status-bar-style" content="black">
  <meta name="apple-mobile-web-app-title" content="车生活"/>
  <link rel="apple-touch-icon-precomposed" href="assets/i/app-icon72x72@2x.png">

  <link rel="stylesheet" href="assets/css/amazeui.min.css">
  <link rel="stylesheet" href="assets/css/app.css">
</head>
<body>

<header data-am-widget="header" class="am-header am-header-default">
  <div class="am-header-left am-header-nav">
    <a href="javascript:history.go(-1)" class="">
      <i class="am-header-icon am-icon-chevron-left"></i>
    </a>
  </div>
  <h1 class="am-header-title">
    <a href="#title-link" class="">年审预约</a>
  </h1>
  <div class="am-header-right am-header-nav">
    <a href="javascript:;" id="nav_click" class="">
      <i class="am-menu-toggle-icon am-icon-th-large am-icon-sm"></i>
    </a>
  </div>
</header>

<div style="height:70px"></div>
<form action="result.html" class="am-form" id="doc-vld-msg">
  <div class="am-g">
    <div class="am-u-sm-12">    
      <div class="am-input-group am-form-group am-input-group-default"><span class="am-input-group-label">车主姓名</span>
        <input class="am-form-field" type="text"  minlength="2" maxlength="20" data-validation-message="*请输入正确的姓名，以便与您联系"  placeholder="请输入您的姓名"  required/>
      </div>
    </div>

    <div class="am-u-sm-12">    
      <div class="am-input-group am-form-group am-input-group-default"><span class="am-input-group-label">您的性别</span>
        <select>
          <option value="1" selected>先生</option>
          <option value="2">女士</option>
        </select>
      </div>
    </div>

    <div class="am-u-sm-12">    
      <div class="am-input-group am-form-group am-input-group-default"><span class="am-input-group-label">手机号码</span>
        <input class="am-form-field" type="tel"  minlength="11" maxlength="11" data-validation-message="*请输入正确的号码，以便与您联系"  placeholder="请输入手机号码" onkeyup="this.value = this.value.toUpperCase();"  required/>
      </div>
    </div>

   <div class="am-u-sm-12">    
      <div class="am-input-group am-form-group am-input-group-default"><span class="am-input-group-label">车牌号码</span>
        <input class="am-form-field" type="text"  minlength="7" maxlength="7" data-validation-message="*请输入正确的车牌号码"  placeholder="请输入要年检的车牌号码" onkeyup="this.value = this.value.toUpperCase();" value="粤S"   required/>
      </div>
    </div>

   <div class="am-u-sm-12">    
      <div class="am-input-group am-form-group am-input-group-default"><span class="am-input-group-label">预约日期</span>
        <input type="text"  data-validation-message="*请预约要年检的时间" class="am-form-field" style="background:#fff;" placeholder="请预约要年检的时间"  id="appDate" readonly />
      </div>
    </div>

   <div class="am-u-sm-12">    
      <div class="am-input-group am-form-group am-input-group-default"><span class="am-input-group-label">年审区域</span>
        <select name="userarea">
            <option value="西平机动车检测站">西平机动车检测站</option>
            <option value="西平机动车检测站">南城机动车检测站</option>            
            <option value="城区机动车检测站">城区机动车检测站</option>
            <option value="莞龙机动车检测站">莞龙机动车检测站</option>
            <option value="寮步汽车城机动车检测站">寮步汽车城机动车检测站</option>
            <option value="寮步广通机动车检测站" selected>寮步广通机动车检测站</option>
            <option value="大朗佛新机动车检测站">大朗佛新机动车检测站</option>
            <option value="常平浩盈机动车检测站">常平浩盈机动车检测站</option>
            <option value="道窖永盈机动车检测站">道窖永盈机动车检测站</option>
            <option value="中堂环城机动车检测站">中堂环城机动车检测站</option>
            <option value="石碣康源检测站">石碣康源检测站</option>
            <option value="大岭山友邦站">大岭山友邦站</option>
            <option value="石龙西湖站">石龙西湖站</option>
            <option value="石龙站新址">石龙站新址</option>
            <option value="塘厦林村站">塘厦林村站</option>
            <option value="清溪金城站">清溪金城站</option>
            <option value="横沥永安站">横沥永安站</option>
            <option value="茶山永信站">茶山永信站</option>
            <option value="长安兴业站">长安兴业站</option>
            <option value="虎门沙河站">虎门沙河站</option>
            <option value="万江永通站">万江永通站</option>
            <option value="塘厦永发站">塘厦永发站</option> 
            <option value="厚街顺通站">厚街顺通站</option> 
        </select>
      </div>
    </div>

    <div class="am-u-sm-12">    
      <div class="am-form-group">
        <div>*目前支持粤牌车在东莞地区年审</div>
      </div>
    </div> 

    <div class="am-modal am-modal-no-btn" tabindex="-1" id="xszsm">
      <div class="am-modal-dialog">
        <div class="am-modal-hd">行驶证样板
          <a href="javascript: void(0)" class="am-close am-close-spin" data-am-modal-close>&times;</a>
        </div>
        <div class="am-modal-bd">
          <img src="assets/i/xsz.jpg" style="width:100%">
        </div>
      </div>
    </div>

    <div class="am-u-sm-12">    
      <button class="am-btn am-btn-success am-radius am-btn-block" type="submit">立即预约</button>
    </div>    
  </div>
</form>

<script type="text/x-handlebars-template" id="amz-tpl">
  {{>navbar navbar}}
</script>
<script src="assets/js/jquery.min.js"></script>
<script src="assets/js/amazeui.min.js"></script>
<script src="assets/js/handlebars.min.js"></script>
<script src="assets/js/amazeui.widgets.helper.js"></script>
<script src="assets/js/app.js"></script>
<script type="text/javascript">
  $(function() {

    var nowTemp = new Date();
    var topdate = new Date();
    topdate.setDate(90);
    var now = new Date(nowTemp.getFullYear(), nowTemp.getMonth(), nowTemp.getDate(), 0, 0, 0, 0);
    var lastdate = new Date(topdate.getFullYear(), topdate.getMonth(), topdate.getDate(), 0, 0, 0, 0);       
    var $myStart2 = $('#appDate');

    var checkin = $myStart2.datepicker({
      onRender: function(date) {
        return (date.valueOf() <= now.valueOf() || date.valueOf()>=lastdate.valueOf()) ? 'am-disabled' : '';
      }
    }).on('changeDate.datepicker.amui', function(ev) {
        checkin.close();
    }).data('amui.datepicker');


  $('#doc-vld-msg').validator({
    onValid: function(validity) {
      $(validity.field).closest('.am-form-group').find('.am-alert').hide();
    },

    onInValid: function(validity) {
      var $field = $(validity.field);
      var $group = $field.closest('.am-form-group');
      var $alert = $group.find('.am-alert');
      // 使用自定义的提示信息 或 插件内置的提示信息
      var msg = $field.data('validationMessage') || this.getValidationMessage(validity);

      if (!$alert.length) {
        $alert = $('<div  class="am-alert am-alert-danger"></div>').hide().
          appendTo($group);
      }

      $alert.html(msg).show();
    }
  });
});
</script>
</body>
</html>
